<html>
	<style>
		body{
			font-size: 15pt;
				font-family: arial;
		}

	</style>

<center>
	<h1>密码重置</h1>
<body>
		<form action="/reset_password" method="POST">
		<input type="text" required="required" name="username" placeholder="请输入用户名"><br>
		<input type="password" required="required" id="password" name="password" placeholder="请设置新密码"><br>
		<input type="password" required="required" name="password_2nd" placeholder="请再次输入新密码" oninput="check(this)"><br>
		<script language="javascript" type="text/javascript">
			function check(input){
				if (input.value != document.getElementById("password").value){
					input.setCustomValidity("两次输入密码必须一致");
				} else{
					input.setCustomValidity("");
				}
			}
		</script>
		<input type="submit" value="确认修改">
</body>
</center>

</html>
		
